<script>
export default {
    name: "404"
}
</script>

<template>
    <div class="content">
        <svg viewBox="0 0 960 300" class="svg-font" >
            <symbol id="s-text">
                <text text-anchor="middle" style="font-family: Monoton" x="50%" y="50%">404</text>
            </symbol>

            <g class = "g-ants">
                <use xlink:href="#s-text" class="text"></use>
                <use xlink:href="#s-text" class="text"></use>
                <use xlink:href="#s-text" class="text"></use>
                <use xlink:href="#s-text" class="text"></use>
                <use xlink:href="#s-text" class="text"></use>
            </g>
        </svg>
    </div>
</template>

<style lang="scss" scoped>

:deep(.svg-font) {
    font-size: 10.5em;
    width: 100%;
    height: 100vh;
}

.content{
    text-align: center;
    font-family: cursive;
}

h1{
    text-align: center;
    font: 2em 'Roboto', sans-serif;
    font-weight: bold;
    color: #2f8f7f;
    opacity: .6;
}


.text {
    font-family: cursive;
    fill: none;
    stroke: white;
    stroke-dasharray: 8% 29%;
    stroke-width: 5px;
    stroke-dashoffset: 1%;
    animation: stroke-offset 5.5s infinite linear;
}

.text:nth-child(1){
    stroke: #1c234d;
    animation-delay: -1;
}

.text:nth-child(2){
    stroke: #315b2c;
    animation-delay: -2s;
}

.text:nth-child(3){
    stroke: #2f8f7f;
    animation-delay: -3s;
}

.text:nth-child(4){
    stroke: #2f8f7f;
    animation-delay: -4s;
}

.text:nth-child(5){
    stroke: #da2717;
    animation-delay: -5s;
}

@keyframes stroke-offset{
    100% {
        stroke-dashoffset: -35%;
    }
}
</style>
